<?php
$tdatatbl_doi_tac_than_thien=array();
	$tdatatbl_doi_tac_than_thien[".NumberOfChars"]=80; 
	$tdatatbl_doi_tac_than_thien[".ShortName"]="tbl_doi_tac_than_thien";
	$tdatatbl_doi_tac_than_thien[".OwnerID"]="";
	$tdatatbl_doi_tac_than_thien[".OriginalTable"]="tbl_doi_tac_than_thien";


	
//	field labels
$fieldLabelstbl_doi_tac_than_thien = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelstbl_doi_tac_than_thien["English"]=array();
	$fieldToolTipstbl_doi_tac_than_thien["English"]=array();
	$fieldLabelstbl_doi_tac_than_thien["English"]["id"] = "Id";
	$fieldToolTipstbl_doi_tac_than_thien["English"]["id"] = "";
	$fieldLabelstbl_doi_tac_than_thien["English"]["hinh_anh"] = "Hinh Anh";
	$fieldToolTipstbl_doi_tac_than_thien["English"]["hinh_anh"] = "";
	if (count($fieldToolTipstbl_doi_tac_than_thien["English"])){
		$tdatatbl_doi_tac_than_thien[".isUseToolTips"]=true;
	}
}


	
	$tdatatbl_doi_tac_than_thien[".NCSearch"]=true;

	

$tdatatbl_doi_tac_than_thien[".shortTableName"] = "tbl_doi_tac_than_thien";
$tdatatbl_doi_tac_than_thien[".nSecOptions"] = 0;
$tdatatbl_doi_tac_than_thien[".recsPerRowList"] = 1;	
$tdatatbl_doi_tac_than_thien[".tableGroupBy"] = "0";
$tdatatbl_doi_tac_than_thien[".mainTableOwnerID"] = "";
$tdatatbl_doi_tac_than_thien[".moveNext"] = 1;




$tdatatbl_doi_tac_than_thien[".showAddInPopup"] = false;

$tdatatbl_doi_tac_than_thien[".showEditInPopup"] = false;

$tdatatbl_doi_tac_than_thien[".showViewInPopup"] = false;


$tdatatbl_doi_tac_than_thien[".fieldsForRegister"] = array();
	
$tdatatbl_doi_tac_than_thien[".listAjax"] = false;

	$tdatatbl_doi_tac_than_thien[".audit"] = false;

	$tdatatbl_doi_tac_than_thien[".locking"] = false;
	
$tdatatbl_doi_tac_than_thien[".listIcons"] = true;
$tdatatbl_doi_tac_than_thien[".edit"] = true;
$tdatatbl_doi_tac_than_thien[".inlineEdit"] = true;
$tdatatbl_doi_tac_than_thien[".view"] = true;

$tdatatbl_doi_tac_than_thien[".exportTo"] = true;

$tdatatbl_doi_tac_than_thien[".printFriendly"] = true;

$tdatatbl_doi_tac_than_thien[".delete"] = true;

$tdatatbl_doi_tac_than_thien[".showSimpleSearchOptions"] = false;

$tdatatbl_doi_tac_than_thien[".showSearchPanel"] = true;


$tdatatbl_doi_tac_than_thien[".isUseAjaxSuggest"] = true;

$tdatatbl_doi_tac_than_thien[".rowHighlite"] = true;


// button handlers file names

$tdatatbl_doi_tac_than_thien[".addPageEvents"] = false;

$tdatatbl_doi_tac_than_thien[".arrKeyFields"][] = "id";

// use datepicker for search panel
$tdatatbl_doi_tac_than_thien[".isUseCalendarForSearch"] = false;

// use timepicker for search panel
$tdatatbl_doi_tac_than_thien[".isUseTimeForSearch"] = false;

$tdatatbl_doi_tac_than_thien[".isUseiBox"] = false;



$tdatatbl_doi_tac_than_thien[".isUseInlineAdd"] = true;

$tdatatbl_doi_tac_than_thien[".isUseInlineEdit"] = true;
$tdatatbl_doi_tac_than_thien[".isUseInlineJs"] = $tdatatbl_doi_tac_than_thien[".isUseInlineAdd"] || $tdatatbl_doi_tac_than_thien[".isUseInlineEdit"];

$tdatatbl_doi_tac_than_thien[".allSearchFields"] = array();

$tdatatbl_doi_tac_than_thien[".globSearchFields"][] = "hinh_anh";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("hinh_anh", $tdatatbl_doi_tac_than_thien[".allSearchFields"]))
{
	$tdatatbl_doi_tac_than_thien[".allSearchFields"][] = "hinh_anh";	
}


$tdatatbl_doi_tac_than_thien[".googleLikeFields"][] = "id";
$tdatatbl_doi_tac_than_thien[".googleLikeFields"][] = "hinh_anh";



$tdatatbl_doi_tac_than_thien[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatatbl_doi_tac_than_thien[".allSearchFields"])) 
{
	$tdatatbl_doi_tac_than_thien[".allSearchFields"][] = "id";	
}
$tdatatbl_doi_tac_than_thien[".advSearchFields"][] = "hinh_anh";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("hinh_anh", $tdatatbl_doi_tac_than_thien[".allSearchFields"])) 
{
	$tdatatbl_doi_tac_than_thien[".allSearchFields"][] = "hinh_anh";	
}

$tdatatbl_doi_tac_than_thien[".isTableType"] = "list";


	

$tdatatbl_doi_tac_than_thien[".isDisplayLoading"] = true;

$tdatatbl_doi_tac_than_thien[".isResizeColumns"] = false;





$tdatatbl_doi_tac_than_thien[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatatbl_doi_tac_than_thien[".strOrderBy"] = $gstrOrderBy;
	
$tdatatbl_doi_tac_than_thien[".orderindexes"] = array();

$tdatatbl_doi_tac_than_thien[".sqlHead"] = "SELECT id,   hinh_anh";
$tdatatbl_doi_tac_than_thien[".sqlFrom"] = "FROM tbl_doi_tac_than_thien";
$tdatatbl_doi_tac_than_thien[".sqlWhereExpr"] = "";
$tdatatbl_doi_tac_than_thien[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatatbl_doi_tac_than_thien[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatatbl_doi_tac_than_thien[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "id";
	$tdatatbl_doi_tac_than_thien[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "tbl_doi_tac_than_thien";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		
		
		
		
		
		
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
				//End validation
	
				
		
				
		
		
		
			$tdatatbl_doi_tac_than_thien["id"]=$fdata;
//	hinh_anh
	$fdata = array();
	$fdata["strName"] = "hinh_anh";
	$fdata["ownerTable"] = "tbl_doi_tac_than_thien";
		$fdata["Label"]="Hinh Anh"; 
	
		
		$fdata["LinkPrefix"]="upload/"; 
	
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Document upload";
	$fdata["ViewFormat"]= "Document Download";
	
		
		
		
		
		
	$fdata["GoodName"]= "hinh_anh";
	
		$fdata["FullName"]= "hinh_anh";
	
		
		
		
		
		
			$fdata["UploadFolder"]="upload"; 
		$fdata["Index"]= 2;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
				//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_doi_tac_than_thien["hinh_anh"]=$fdata;

	
$tables_data["tbl_doi_tac_than_thien"]=&$tdatatbl_doi_tac_than_thien;
$field_labels["tbl_doi_tac_than_thien"] = &$fieldLabelstbl_doi_tac_than_thien;
$fieldToolTips["tbl_doi_tac_than_thien"] = &$fieldToolTipstbl_doi_tac_than_thien;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["tbl_doi_tac_than_thien"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["tbl_doi_tac_than_thien"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto88=array();
$proto88["m_strHead"] = "SELECT";
$proto88["m_strFieldList"] = "id,   hinh_anh";
$proto88["m_strFrom"] = "FROM tbl_doi_tac_than_thien";
$proto88["m_strWhere"] = "";
$proto88["m_strOrderBy"] = "";
$proto88["m_strTail"] = "";
$proto89=array();
$proto89["m_sql"] = "";
$proto89["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto89["m_column"]=$obj;
$proto89["m_contained"] = array();
$proto89["m_strCase"] = "";
$proto89["m_havingmode"] = "0";
$proto89["m_inBrackets"] = "0";
$proto89["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto89);

$proto88["m_where"] = $obj;
$proto91=array();
$proto91["m_sql"] = "";
$proto91["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto91["m_column"]=$obj;
$proto91["m_contained"] = array();
$proto91["m_strCase"] = "";
$proto91["m_havingmode"] = "0";
$proto91["m_inBrackets"] = "0";
$proto91["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto91);

$proto88["m_having"] = $obj;
$proto88["m_fieldlist"] = array();
						$proto93=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "tbl_doi_tac_than_thien"
));

$proto93["m_expr"]=$obj;
$proto93["m_alias"] = "";
$obj = new SQLFieldListItem($proto93);

$proto88["m_fieldlist"][]=$obj;
						$proto95=array();
			$obj = new SQLField(array(
	"m_strName" => "hinh_anh",
	"m_strTable" => "tbl_doi_tac_than_thien"
));

$proto95["m_expr"]=$obj;
$proto95["m_alias"] = "";
$obj = new SQLFieldListItem($proto95);

$proto88["m_fieldlist"][]=$obj;
$proto88["m_fromlist"] = array();
												$proto97=array();
$proto97["m_link"] = "SQLL_MAIN";
			$proto98=array();
$proto98["m_strName"] = "tbl_doi_tac_than_thien";
$proto98["m_columns"] = array();
$proto98["m_columns"][] = "id";
$proto98["m_columns"][] = "hinh_anh";
$obj = new SQLTable($proto98);

$proto97["m_table"] = $obj;
$proto97["m_alias"] = "";
$proto99=array();
$proto99["m_sql"] = "";
$proto99["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto99["m_column"]=$obj;
$proto99["m_contained"] = array();
$proto99["m_strCase"] = "";
$proto99["m_havingmode"] = "0";
$proto99["m_inBrackets"] = "0";
$proto99["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto99);

$proto97["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto97);

$proto88["m_fromlist"][]=$obj;
$proto88["m_groupby"] = array();
$proto88["m_orderby"] = array();
$obj = new SQLQuery($proto88);

$queryData_tbl_doi_tac_than_thien = $obj;
$tdatatbl_doi_tac_than_thien[".sqlquery"] = $queryData_tbl_doi_tac_than_thien;

$tableEvents["tbl_doi_tac_than_thien"] = new eventsBase;

?>
